package cn.ilikes.tools.nosql.jpa.query.sql.element;

public class WhereList implements Element {

	public enum ListType {

		no_equals, or, and, equals, like, parent, greaterThan, greaterThanEquals, minorThanEquals, minorThan, between, nulls, in
	}

	public WhereList(ListType listType) {
		super();
		this.listType = listType;
	}

	public WhereList() {

		this.listType = ListType.nulls;
	}

	private ListType listType;

	private Element leftList;

	private Element rightList;

	public ListType getListType() {
		return listType;
	}

	public Element getLeftList() {
		return leftList;
	}

	public Element getRightList() {
		return rightList;
	}

	public void setListType(ListType listType) {
		this.listType = listType;
	}

	public void setLeftList(Element leftList) {
		this.leftList = leftList;
	}

	public void setRightList(Element rightList) {
		this.rightList = rightList;
	}

	@Override
	public String toString() {
		return "WhereList [listType=" + listType + ", leftList=" + leftList + ", rightList=" + rightList + "]";
	}

}
